drawingarea: Remove useless line from code example
authorTimm Bäder <mail@baedert.org>
Wed, 28 Jun 2017 09:17:03 +0000 (11:17 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000 (21:27 -0400)
backgrounds are drawn automatically now.

gtk/gtkdrawingarea.c

index cc2c94ae6e1f1f57c635026e3fcc39912fb4d7af..12d46e747535ba03e53b656e7c23b1d243447963 100644 (file)
@@ -80,8 +80,7 @@ static GParamSpec *props[LAST_PROP] = { NULL, };
  *
  * Note that GDK automatically clears the exposed area before causing a
  * redraw, and that drawing is implicitly clipped to the exposed
- * area. If you want to have a theme-provided background, you need
- * to call gtk_render_background() in your ::draw method.
+ * area.
  *
  * ## Simple GtkDrawingArea usage
  *
@@ -96,8 +95,6 @@ static GParamSpec *props[LAST_PROP] = { NULL, };
  *
  *   context = gtk_widget_get_style_context (GTK_WIDGET (area));
  *
- *   gtk_render_background (context, cr, 0, 0, width, height);
- *
  *   cairo_arc (cr,
  *              width / 2.0, height / 2.0,
  *              MIN (width, height) / 2.0,